/**
 * 公共基础接口封装
 */

import request from '@/utils/request'

interface ResponseData<T = any> {
  status: number,
  msg: string,
  data: T
}

export const getLoginInfo = () => {
  // return request({
  //   method: 'GET',
  //   url: '/login/info'
  // })

  // return request.get<{
  //   status: number,
  //   msg: string,
  //   data: any
  // }>('/login/info')

  return request.get<ResponseData<{
    logo_square: string
  }>>('/login/info').then(res => {
    return res.data
  })

}
